package com.wwx.worldonwheels.domain;

import java.util.ArrayList;
import java.util.List;

public class WwxVehicleExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WwxVehicleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andVinIsNull() {
            addCriterion("vin is null");
            return (Criteria) this;
        }

        public Criteria andVinIsNotNull() {
            addCriterion("vin is not null");
            return (Criteria) this;
        }

        public Criteria andVinEqualTo(String value) {
            addCriterion("vin =", value, "vin");
            return (Criteria) this;
        }

        public Criteria andVinNotEqualTo(String value) {
            addCriterion("vin <>", value, "vin");
            return (Criteria) this;
        }

        public Criteria andVinGreaterThan(String value) {
            addCriterion("vin >", value, "vin");
            return (Criteria) this;
        }

        public Criteria andVinGreaterThanOrEqualTo(String value) {
            addCriterion("vin >=", value, "vin");
            return (Criteria) this;
        }

        public Criteria andVinLessThan(String value) {
            addCriterion("vin <", value, "vin");
            return (Criteria) this;
        }

        public Criteria andVinLessThanOrEqualTo(String value) {
            addCriterion("vin <=", value, "vin");
            return (Criteria) this;
        }

        public Criteria andVinLike(String value) {
            addCriterion("vin like", value, "vin");
            return (Criteria) this;
        }

        public Criteria andVinNotLike(String value) {
            addCriterion("vin not like", value, "vin");
            return (Criteria) this;
        }

        public Criteria andVinIn(List<String> values) {
            addCriterion("vin in", values, "vin");
            return (Criteria) this;
        }

        public Criteria andVinNotIn(List<String> values) {
            addCriterion("vin not in", values, "vin");
            return (Criteria) this;
        }

        public Criteria andVinBetween(String value1, String value2) {
            addCriterion("vin between", value1, value2, "vin");
            return (Criteria) this;
        }

        public Criteria andVinNotBetween(String value1, String value2) {
            addCriterion("vin not between", value1, value2, "vin");
            return (Criteria) this;
        }

        public Criteria andMakeIsNull() {
            addCriterion("make is null");
            return (Criteria) this;
        }

        public Criteria andMakeIsNotNull() {
            addCriterion("make is not null");
            return (Criteria) this;
        }

        public Criteria andMakeEqualTo(String value) {
            addCriterion("make =", value, "make");
            return (Criteria) this;
        }

        public Criteria andMakeNotEqualTo(String value) {
            addCriterion("make <>", value, "make");
            return (Criteria) this;
        }

        public Criteria andMakeGreaterThan(String value) {
            addCriterion("make >", value, "make");
            return (Criteria) this;
        }

        public Criteria andMakeGreaterThanOrEqualTo(String value) {
            addCriterion("make >=", value, "make");
            return (Criteria) this;
        }

        public Criteria andMakeLessThan(String value) {
            addCriterion("make <", value, "make");
            return (Criteria) this;
        }

        public Criteria andMakeLessThanOrEqualTo(String value) {
            addCriterion("make <=", value, "make");
            return (Criteria) this;
        }

        public Criteria andMakeLike(String value) {
            addCriterion("make like", value, "make");
            return (Criteria) this;
        }

        public Criteria andMakeNotLike(String value) {
            addCriterion("make not like", value, "make");
            return (Criteria) this;
        }

        public Criteria andMakeIn(List<String> values) {
            addCriterion("make in", values, "make");
            return (Criteria) this;
        }

        public Criteria andMakeNotIn(List<String> values) {
            addCriterion("make not in", values, "make");
            return (Criteria) this;
        }

        public Criteria andMakeBetween(String value1, String value2) {
            addCriterion("make between", value1, value2, "make");
            return (Criteria) this;
        }

        public Criteria andMakeNotBetween(String value1, String value2) {
            addCriterion("make not between", value1, value2, "make");
            return (Criteria) this;
        }

        public Criteria andYearIsNull() {
            addCriterion("year is null");
            return (Criteria) this;
        }

        public Criteria andYearIsNotNull() {
            addCriterion("year is not null");
            return (Criteria) this;
        }

        public Criteria andYearEqualTo(Integer value) {
            addCriterion("year =", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearNotEqualTo(Integer value) {
            addCriterion("year <>", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearGreaterThan(Integer value) {
            addCriterion("year >", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearGreaterThanOrEqualTo(Integer value) {
            addCriterion("year >=", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearLessThan(Integer value) {
            addCriterion("year <", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearLessThanOrEqualTo(Integer value) {
            addCriterion("year <=", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearIn(List<Integer> values) {
            addCriterion("year in", values, "year");
            return (Criteria) this;
        }

        public Criteria andYearNotIn(List<Integer> values) {
            addCriterion("year not in", values, "year");
            return (Criteria) this;
        }

        public Criteria andYearBetween(Integer value1, Integer value2) {
            addCriterion("year between", value1, value2, "year");
            return (Criteria) this;
        }

        public Criteria andYearNotBetween(Integer value1, Integer value2) {
            addCriterion("year not between", value1, value2, "year");
            return (Criteria) this;
        }

        public Criteria andLicensePlateNumberIsNull() {
            addCriterion("license_plate_number is null");
            return (Criteria) this;
        }

        public Criteria andLicensePlateNumberIsNotNull() {
            addCriterion("license_plate_number is not null");
            return (Criteria) this;
        }

        public Criteria andLicensePlateNumberEqualTo(String value) {
            addCriterion("license_plate_number =", value, "licensePlateNumber");
            return (Criteria) this;
        }

        public Criteria andLicensePlateNumberNotEqualTo(String value) {
            addCriterion("license_plate_number <>", value, "licensePlateNumber");
            return (Criteria) this;
        }

        public Criteria andLicensePlateNumberGreaterThan(String value) {
            addCriterion("license_plate_number >", value, "licensePlateNumber");
            return (Criteria) this;
        }

        public Criteria andLicensePlateNumberGreaterThanOrEqualTo(String value) {
            addCriterion("license_plate_number >=", value, "licensePlateNumber");
            return (Criteria) this;
        }

        public Criteria andLicensePlateNumberLessThan(String value) {
            addCriterion("license_plate_number <", value, "licensePlateNumber");
            return (Criteria) this;
        }

        public Criteria andLicensePlateNumberLessThanOrEqualTo(String value) {
            addCriterion("license_plate_number <=", value, "licensePlateNumber");
            return (Criteria) this;
        }

        public Criteria andLicensePlateNumberLike(String value) {
            addCriterion("license_plate_number like", value, "licensePlateNumber");
            return (Criteria) this;
        }

        public Criteria andLicensePlateNumberNotLike(String value) {
            addCriterion("license_plate_number not like", value, "licensePlateNumber");
            return (Criteria) this;
        }

        public Criteria andLicensePlateNumberIn(List<String> values) {
            addCriterion("license_plate_number in", values, "licensePlateNumber");
            return (Criteria) this;
        }

        public Criteria andLicensePlateNumberNotIn(List<String> values) {
            addCriterion("license_plate_number not in", values, "licensePlateNumber");
            return (Criteria) this;
        }

        public Criteria andLicensePlateNumberBetween(String value1, String value2) {
            addCriterion("license_plate_number between", value1, value2, "licensePlateNumber");
            return (Criteria) this;
        }

        public Criteria andLicensePlateNumberNotBetween(String value1, String value2) {
            addCriterion("license_plate_number not between", value1, value2, "licensePlateNumber");
            return (Criteria) this;
        }

        public Criteria andModelIsNull() {
            addCriterion("model is null");
            return (Criteria) this;
        }

        public Criteria andModelIsNotNull() {
            addCriterion("model is not null");
            return (Criteria) this;
        }

        public Criteria andModelEqualTo(String value) {
            addCriterion("model =", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelNotEqualTo(String value) {
            addCriterion("model <>", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelGreaterThan(String value) {
            addCriterion("model >", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelGreaterThanOrEqualTo(String value) {
            addCriterion("model >=", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelLessThan(String value) {
            addCriterion("model <", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelLessThanOrEqualTo(String value) {
            addCriterion("model <=", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelLike(String value) {
            addCriterion("model like", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelNotLike(String value) {
            addCriterion("model not like", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelIn(List<String> values) {
            addCriterion("model in", values, "model");
            return (Criteria) this;
        }

        public Criteria andModelNotIn(List<String> values) {
            addCriterion("model not in", values, "model");
            return (Criteria) this;
        }

        public Criteria andModelBetween(String value1, String value2) {
            addCriterion("model between", value1, value2, "model");
            return (Criteria) this;
        }

        public Criteria andModelNotBetween(String value1, String value2) {
            addCriterion("model not between", value1, value2, "model");
            return (Criteria) this;
        }

        public Criteria andUseStatusIsNull() {
            addCriterion("use_status is null");
            return (Criteria) this;
        }

        public Criteria andUseStatusIsNotNull() {
            addCriterion("use_status is not null");
            return (Criteria) this;
        }

        public Criteria andUseStatusEqualTo(String value) {
            addCriterion("use_status =", value, "useStatus");
            return (Criteria) this;
        }

        public Criteria andUseStatusNotEqualTo(String value) {
            addCriterion("use_status <>", value, "useStatus");
            return (Criteria) this;
        }

        public Criteria andUseStatusGreaterThan(String value) {
            addCriterion("use_status >", value, "useStatus");
            return (Criteria) this;
        }

        public Criteria andUseStatusGreaterThanOrEqualTo(String value) {
            addCriterion("use_status >=", value, "useStatus");
            return (Criteria) this;
        }

        public Criteria andUseStatusLessThan(String value) {
            addCriterion("use_status <", value, "useStatus");
            return (Criteria) this;
        }

        public Criteria andUseStatusLessThanOrEqualTo(String value) {
            addCriterion("use_status <=", value, "useStatus");
            return (Criteria) this;
        }

        public Criteria andUseStatusLike(String value) {
            addCriterion("use_status like", value, "useStatus");
            return (Criteria) this;
        }

        public Criteria andUseStatusNotLike(String value) {
            addCriterion("use_status not like", value, "useStatus");
            return (Criteria) this;
        }

        public Criteria andUseStatusIn(List<String> values) {
            addCriterion("use_status in", values, "useStatus");
            return (Criteria) this;
        }

        public Criteria andUseStatusNotIn(List<String> values) {
            addCriterion("use_status not in", values, "useStatus");
            return (Criteria) this;
        }

        public Criteria andUseStatusBetween(String value1, String value2) {
            addCriterion("use_status between", value1, value2, "useStatus");
            return (Criteria) this;
        }

        public Criteria andUseStatusNotBetween(String value1, String value2) {
            addCriterion("use_status not between", value1, value2, "useStatus");
            return (Criteria) this;
        }

        public Criteria andWwxClassClassIdIsNull() {
            addCriterion("wwx_class_class_id is null");
            return (Criteria) this;
        }

        public Criteria andWwxClassClassIdIsNotNull() {
            addCriterion("wwx_class_class_id is not null");
            return (Criteria) this;
        }

        public Criteria andWwxClassClassIdEqualTo(Integer value) {
            addCriterion("wwx_class_class_id =", value, "wwxClassClassId");
            return (Criteria) this;
        }

        public Criteria andWwxClassClassIdNotEqualTo(Integer value) {
            addCriterion("wwx_class_class_id <>", value, "wwxClassClassId");
            return (Criteria) this;
        }

        public Criteria andWwxClassClassIdGreaterThan(Integer value) {
            addCriterion("wwx_class_class_id >", value, "wwxClassClassId");
            return (Criteria) this;
        }

        public Criteria andWwxClassClassIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("wwx_class_class_id >=", value, "wwxClassClassId");
            return (Criteria) this;
        }

        public Criteria andWwxClassClassIdLessThan(Integer value) {
            addCriterion("wwx_class_class_id <", value, "wwxClassClassId");
            return (Criteria) this;
        }

        public Criteria andWwxClassClassIdLessThanOrEqualTo(Integer value) {
            addCriterion("wwx_class_class_id <=", value, "wwxClassClassId");
            return (Criteria) this;
        }

        public Criteria andWwxClassClassIdIn(List<Integer> values) {
            addCriterion("wwx_class_class_id in", values, "wwxClassClassId");
            return (Criteria) this;
        }

        public Criteria andWwxClassClassIdNotIn(List<Integer> values) {
            addCriterion("wwx_class_class_id not in", values, "wwxClassClassId");
            return (Criteria) this;
        }

        public Criteria andWwxClassClassIdBetween(Integer value1, Integer value2) {
            addCriterion("wwx_class_class_id between", value1, value2, "wwxClassClassId");
            return (Criteria) this;
        }

        public Criteria andWwxClassClassIdNotBetween(Integer value1, Integer value2) {
            addCriterion("wwx_class_class_id not between", value1, value2, "wwxClassClassId");
            return (Criteria) this;
        }

        public Criteria andWwxWowWowIdIsNull() {
            addCriterion("wwx_wow_wow_id is null");
            return (Criteria) this;
        }

        public Criteria andWwxWowWowIdIsNotNull() {
            addCriterion("wwx_wow_wow_id is not null");
            return (Criteria) this;
        }

        public Criteria andWwxWowWowIdEqualTo(Integer value) {
            addCriterion("wwx_wow_wow_id =", value, "wwxWowWowId");
            return (Criteria) this;
        }

        public Criteria andWwxWowWowIdNotEqualTo(Integer value) {
            addCriterion("wwx_wow_wow_id <>", value, "wwxWowWowId");
            return (Criteria) this;
        }

        public Criteria andWwxWowWowIdGreaterThan(Integer value) {
            addCriterion("wwx_wow_wow_id >", value, "wwxWowWowId");
            return (Criteria) this;
        }

        public Criteria andWwxWowWowIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("wwx_wow_wow_id >=", value, "wwxWowWowId");
            return (Criteria) this;
        }

        public Criteria andWwxWowWowIdLessThan(Integer value) {
            addCriterion("wwx_wow_wow_id <", value, "wwxWowWowId");
            return (Criteria) this;
        }

        public Criteria andWwxWowWowIdLessThanOrEqualTo(Integer value) {
            addCriterion("wwx_wow_wow_id <=", value, "wwxWowWowId");
            return (Criteria) this;
        }

        public Criteria andWwxWowWowIdIn(List<Integer> values) {
            addCriterion("wwx_wow_wow_id in", values, "wwxWowWowId");
            return (Criteria) this;
        }

        public Criteria andWwxWowWowIdNotIn(List<Integer> values) {
            addCriterion("wwx_wow_wow_id not in", values, "wwxWowWowId");
            return (Criteria) this;
        }

        public Criteria andWwxWowWowIdBetween(Integer value1, Integer value2) {
            addCriterion("wwx_wow_wow_id between", value1, value2, "wwxWowWowId");
            return (Criteria) this;
        }

        public Criteria andWwxWowWowIdNotBetween(Integer value1, Integer value2) {
            addCriterion("wwx_wow_wow_id not between", value1, value2, "wwxWowWowId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}